package hcmut.edu.vn.greencloud;

import java.util.LinkedList;
import java.util.List;

import hcmut.edu.vn.greencloud.Lease;

public class LeaseQueue {
	
	private static List<Lease> list;
	
	public LeaseQueue(List<Lease> listLease){
		list = listLease;
	}
	
	public int size(){
		return list.size();
	}
	
	public void clear(){
		list.clear();
	}
	
	public void addLease(Lease lease){
		list.add(lease);
	}
	
	public void addLease(Lease lease , int index){
		list.add(index, lease);
	}
	
	public List<Lease> getList(){
		return list;
	}
}
